<!--
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-02-29 15:17:20
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-02-29 15:28:20
 * @FilePath: \输入序列验证\index-START.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Key Detection</title>
    <script type="text/javascript" src="./cornify.js"></script>
    <link rel="icon" href="https://fav.farm/🔥" />
  </head>
  <body>
    <script>
      const arr = []
      const code = 'abcdef'
      document.addEventListener('keyup',(e) => {
        arr.push(e.key)
        if(arr.length > code.length){
          arr.splice(0,1)
        }
        if(arr.join('') === code){
          cornify_add()
          console.log("成功输入正确序列")
        }
      })
    </script>
  </body>
</html>
